package com.ruoyi.edu.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.edu.domain.EduVideo;
import com.ruoyi.edu.domain.vo.EduVideoVo;
import com.ruoyi.edu.domain.bo.EduVideoBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 课程视频Service接口
 *
 * @author ruoyi
 * @date 2022-08-18
 */
public interface IEduVideoService {

    /**
     * 查询课程视频
     */
    EduVideoVo queryById(String id);

    /**
     * 查询课程视频列表
     */
    TableDataInfo<EduVideoVo> queryPageList(EduVideoBo bo, PageQuery pageQuery);

    /**
     * 查询课程视频列表
     */
    List<EduVideoVo> queryList(EduVideoBo bo);

    /**
     * 新增课程视频
     */
    Boolean insertByBo(EduVideoBo bo);

    /**
     * 修改课程视频
     */
    Boolean updateByBo(EduVideoBo bo);

    /**
     * 校验并批量删除课程视频信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    List<EduVideo> list(QueryWrapper<EduVideo> wrapperVideo);
}
